- addIndex
void addIndex(index_t[] newIndices)
Undocumented in source. Be warned that the author may not have intended to support it.
- addVertex
index_t addVertex(float x, float y, float z)
Adds a vertex to the structure and return its current index.
- checkVerticesCount
void checkVerticesCount(int howMuch)
Undocumented in source. Be warned that the author may not have intended to support it.
- draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
- drawEllipse
void drawEllipse(int x, int y, int radiusW, int radiusH, int degrees, HipColor color, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawLine
void drawLine(int x1, int y1, int x2, int y2, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawLine
void drawLine(float x1, float y1, float x2, float y2, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawPixel
void drawPixel(int x, int y, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawQuadraticBezierLine
void drawQuadraticBezierLine(int x0, int y0, int x1, int y1, int x2, int y2, int precision, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawRectangle
void drawRectangle(int x, int y, int w, int h, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawTriangle
void drawTriangle(int x1, int y1, int x2, int y2, int x3, int y3, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillEllipse
void fillEllipse(int x, int y, int radiusW, int radiusH, int degrees, HipColor color, int precision)
With this default precision, the circle should be smooth enough
- fillEllipseVertices
void fillEllipseVertices(int x, int y, int radiusW, int radiusH, int degrees, int startDegrees, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillRectangle
void fillRectangle(int x, int y, int w, int h, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillRoundRect
void fillRoundRect(int x, int y, int w, int h, int radius, HipColor color, int vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
- fillTriangle
void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
- rectangleVertices
void rectangleVertices(int x, int y, int w, int h)
Draws the following rectangle scheme:
0 _______ 3
| |
| |
|_______|
1 2
0, 1, 2
2, 3, 0
- setColor
void setColor(HipColor c)
Undocumented in source. Be warned that the author may not have intended to support it.
- setCurrentDepth
void setCurrentDepth(float depth)
Undocumented in source. Be warned that the author may not have intended to support it.
- triangleVertices
void triangleVertices(int x1, int y1, int x2, int y2, int x3, int y3)
Undocumented in source. Be warned that the author may not have intended to support it.
This class uses the vertex layout XYZ RGBA. it is meant to be a 2D API for drawing primitives